package org.aptech.hdax.component;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

@Component("kid")
@Scope("prototype")
public class Kid {
    private String name;
    private String[] friends;
    private List<String> hobbis;
    private Set<String> fruits;
    private Map<String,String> contacts;
    private Properties properties;
    @Resource(name = "silver")
    private FoTou foTou;

    public String getName() {
        return name;
    }

    public String[] getFriends() {
        return friends;
    }

    public List<String> getHobbis() {
        return hobbis;
    }

    public Set<String> getFruits() {
        return fruits;
    }

    public Map<String, String> getContacts() {
        return contacts;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setFriends(String[] friends) {
        this.friends = friends;
    }

    public void setHobbis(List<String> hobbis) {
        this.hobbis = hobbis;
    }

    public void setFruits(Set<String> fruits) {
        this.fruits = fruits;
    }

    public void setContacts(Map<String, String> contacts) {
        this.contacts = contacts;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setFoTou(FoTou foTou) {
        this.foTou = foTou;
    }

    public void kan(String object){
        System.out.println("我是小屁孩：" + this.name);
        this.foTou.kan(object);
    }

}
